<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>css3盒子模型</title>
    <style>
      div {
        width: 200px;
        height: 200px;
        background-color: pink;
        padding: 15px;
        border: 20px solid red;
        /* 默认值:content-box 盒子大小为 width + padding + border */
        /* box-sizing: content-box; */
      }

      p {
        width: 200px;
        height: 200px;
        background-color: pink;
        padding: 15px;
        border: 20px solid red;
        /* border-box 盒子大小为你指定width、height 200px  */
        box-sizing: border-box;
      }
    </style>
  </head>
  <body>
    <div>peppa pig</div>

    <p>georga</p>
  </body>
</html>
